<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <div style="background: yellow;">main</div>

    <script defer src="./main.js"></script>
    <!-- <script>
      const t = Date.now()
      while (Date.now() - t < 1000) {
        console.log('main');
      }
      const div = document.querySelector('div');
      div.style.background = Math.random() > 0.5 ? 'red' : 'green';
    </script> -->
  </body>
</html>
